﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Xml.Serialization;

namespace Labthink.PCSoft.UniversalHost4.Model
{
    [DebuggerDisplay("{No,nq},Vacuum={Vacuum,nq},VacumizeTime={VacumizeTime,nq},TestDuration={TestDuration,nq},KeepTime={KeepTime,nq},ShiTiRate={ShiTiDecayRate,nq},Rate={DecayRate,nq}")] //nq:No Quote 去掉最终显示的引号
    public class Cali
    {
        [XmlAttribute]
        public string No { get; set; }

        [XmlAttribute]
        public string Vacuum { get; set; }

        /// <summary>
        /// 抽真空时间或者充气时间
        /// </summary>
        [XmlAttribute]
        public string VacumizeTime { get; set; }

        [XmlAttribute]
        public string TestDuration { get; set; }

        [XmlAttribute]
        public string KeepTime { get; set; }

        [XmlAttribute]
        public string ShiTiDecayRate { get; set; }

        /// <summary>
        /// 标定泄露率
        /// </summary>
        [XmlText]
        public string DecayRate { get; set; }
    }

    [XmlRoot("CaliInfo")]
    public class CaliInfo
    {
        [XmlAttribute]
        public DateTime LastUsed { get; set; }

        [XmlArray]
        public List<Cali> Calis { get; set; }
    }
}
